package com.azure.mapper.report;

import com.azure.entity.AProductDailyReport;
import com.azure.entity.AProductDailyReportExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface AProductDailyReportMapper {
    int countByExample(AProductDailyReportExample example);

    int deleteByExample(AProductDailyReportExample example);

    int deleteByPrimaryKey(Long id);

    int insert(AProductDailyReport record);

    int insertSelective(AProductDailyReport record);

    List<AProductDailyReport> selectByExample(AProductDailyReportExample example);

    AProductDailyReport selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") AProductDailyReport record, @Param("example") AProductDailyReportExample example);

    int updateByExample(@Param("record") AProductDailyReport record, @Param("example") AProductDailyReportExample example);

    int updateByPrimaryKeySelective(AProductDailyReport record);

    int updateByPrimaryKey(AProductDailyReport record);

    @Select("select * from a_product_daily_report where date = #{date} order by hot asc")
    List<AProductDailyReport> getDailyProductData(@Param("date")String date);
}